package com.pj.project.aliyun_config;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * Model: sys_client -- 应用表
 * @author shengzhang 
 */
@Data
@Accessors(chain = true)
public class AliyunConfig implements Serializable {

	// ---------- 模块常量 ----------
	/**
	 * 序列化版本id 
	 */
	private static final long serialVersionUID = 1L;	
	/**
	 * 此模块对应的表名 
	 */
	public static final String TABLE_NAME = "aliyun_config";
	/**
	 * 此模块对应的权限码 
	 */
	public static final String PERMISSION_CODE = "aliyun-config";

//原始短信配置 可用
//	SMS_239313126
//			新农邦
//			LTAI5tBQs7GhW2ufsYqqd83y
//	P4ziAygi7J7OZ4mHKoRTuvoiqg33JC

	// ---------- 表中字段 ----------
	/**
	 * id号 
	 */
	public Long id;	

	/**
	 * accessKeyId
	 */
	public String accessKeyId;

	/**
	 * accessSecret
	 */
	public String accessSecret;

	/**
	 * 模板id
	 */
	public String regionId;

	/**
	 * 模板名称
	 */
	public String signName;



	@CreatedBy
	@TableField(fill = FieldFill.INSERT)
	private String createBy;

	@CreatedDate
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	@LastModifiedBy
	@TableField(fill = FieldFill.UPDATE)
	private String updateBy;

	@LastModifiedDate
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

	@TableField(fill = FieldFill.INSERT)
	private Boolean deleteFlag;

}
